<!-- 个人记录新增-->
<template>
    <view class="mainPge">
        <!-- 公共头部 -->
        <headerPublic title="记录详情" @backfn="backfn" />
        <!--主体-->
        <view class="page-content outbottom">
            <view class="frct">
                <view class="fr-colum">
                    <view class="fr-lable fr-2">记录标题</view>
                    <view>
                        <text class="defaultstr defaultstr1">{{pageInfo.title}}</text>
                    </view>
                </view>
            </view>
            <view class="frct">
                <view class="fr-colum">
                    <view class="fr-lable fr-2">日期</view>
                    <view >
                        <text class="defaultstr defaultstr1">{{pageInfo.flCreateTime}}</text>
                    </view>
                </view>
            </view>
            <view class="frct">
                <view class="fr-colum">
                    <view class="fr-lable fr-2">正文</view>
                    <view >
                        <text class="defaultstr defaultstr1">{{pageInfo.text}}</text>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
import { getWorklogInfo} from '@/api/worklog.js';
export default {
    name: 'noticeset',
    data() {
        return {
			pageInfo:{
				title: '',// 记录标题
				text: '',// 正文
				flCreateTime:'',// 日期
				pageId:''
			},
		};
    },
	onLoad(res) {
		this.pageInfo.pageId = res && res.id ? res.id :''
		if(this.pageInfo.pageId){
			getWorklogInfo(this.pageInfo.pageId).then(res =>{
				this.pageInfo = res.data
			})
		}
	},
    methods: {
		backfn(){
			uni.navigateBack({
				data: 1
			});
		},
	}
};
</script>
<style scoped lang="scss">
@import '../../style/documentmanage.scss';
</style>
